#include <iostream>
#include <string>
#include "threadpool.hpp"
using namespace std;

int Add(int x, int y) {
    return x + y;
}
int main() {
    
    threadpool tp;
    for (int i = 1; i <= 10; i++) {
        future<int> ret = tp.push(Add, 11, i);
        cout << "计算结果: " << ret.get() << endl;
    }
    tp.stop();
    return 0;
}